<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.org/ui"
      xmlns:cc="http://MedMarkP1"
      xmlns:ch="http://java.sun.com/jsf/composite/consultasPorProfissionalCC">
 
  <ui:composition template="/pages/templates/commonLayoutCli.xhtml">

	
	<ui:define name="content">
	
	<h:form>
	<center>
	
		<p:panel style="width:70%">
			<p:outputLabel>
				Consultas do Dia
			</p:outputLabel>
			
			<p:accordionPanel multiple="true"
				value="#{beanConsultas.consultasModelS.keySet().toArray()}"
				var="profissional"
				dynamic="true">
				<p:tab title="#{profissional}">
					<p:dataTable value="#{beanConsultas.consultasModelS.get(profissional)}" var="consultaModel">
						<p:column headerText="Paciente" >
							<h:outputText value="#{consultaModel.paciente}"></h:outputText>
						</p:column>
						<p:column headerText="Hora" >
							<h:outputText value="#{consultaModel.horario}"></h:outputText>
						</p:column>
						<!-- <p:column headerText="Hora Final" >
							<h:outputText value="#{consultaModel.horarioFinal}"></h:outputText>
						</p:column> -->
					</p:dataTable>
				</p:tab>
			</p:accordionPanel>

		</p:panel>
	</center>
	</h:form>
	

</ui:define>

</ui:composition>

</html>